<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<script>

description('This test checks that custom data on reachable DOM nodes is not lost during GC.');

var xmlDoc = document.implementation.createDocument('', 'doc', null);
var xmlNode = xmlDoc.documentElement;
xmlNode.ownerDocument.data = 1;
xmlDoc = null;

gc();

shouldBe('xmlNode.ownerDocument.data', '1');

</script>
